<template>
  <div class="welcome-content-container">
    <div class="square"></div>
    <div class="square"></div>
    <main>
      <span>发布平台</span>
      <svg
        t="1607153348230"
        class="icon"
        viewBox="0 0 1024 1024"
        version="1.1"
        xmlns="http://www.w3.org/2000/svg"
        p-id="7340"
        data-spm-anchor-id="a313x.7781069.0.i11"
        width="256"
        height="256"
      >
        <path
          d="M429.056 757.76l89.6-333.312c8.192-30.208 36.352-50.688 70.656-50.688h216.576c40.448 0 62.464 17.92 74.24 33.28 4.608 5.632 8.192 12.8 10.752 17.92h25.088V273.408c0-70.656-54.272-130.048-124.928-130.048H178.176c-71.168 0-132.096 59.904-132.096 130.56v357.888c0 70.144 60.928 125.952 131.072 125.952h51.2c9.216 0 17.408 5.632 22.016 13.824l58.88 101.376c4.096 6.656 13.312 7.168 17.408 0.512l62.464-102.4c4.608-7.68 12.8-13.312 22.016-13.312h17.92zM359.424 486.4h-143.36c-16.896 0-30.72-13.824-30.72-30.72s13.824-30.72 30.72-30.72h143.36c16.896 0 30.72 13.824 30.72 30.72s-13.824 30.72-30.72 30.72z m-143.36-148.48c-16.896 0-30.72-13.824-30.72-30.72s13.824-30.72 30.72-30.72h424.96c16.896 0 30.72 13.824 30.72 30.72s-13.824 30.72-30.72 30.72h-424.96z"
          p-id="7341"
          data-spm-anchor-id="a313x.7781069.0.i12"
          class=""
          fill="#1296db"
        ></path>
        <path
          d="M892.416 752.64h-107.52c-14.848 0-27.648-6.144-35.84-16.384-7.68-9.728-9.728-19.456-6.656-34.816H525.824c-6.144 0-12.288-1.536-16.384-6.656s-5.12-11.264-3.584-17.408l63.488-236.544c2.56-8.704 10.752-15.872 19.968-15.872h216.576c14.336 0 26.112 6.656 33.792 16.384 7.168 9.728 9.216 22.528 6.144 35.328v-1.024c0.512 0.512 1.024 0 2.048 0h108.032c6.144 0 12.288 4.096 16.384 9.216s5.12 12.288 3.584 18.432l-63.488 234.496c-2.56 9.728-10.752 14.848-19.968 14.848z m-110.08-39.936c0.512 0 1.536-1.024 2.56-1.024h92.16l52.736-194.56h-81.408c-11.776 0-23.552-3.584-31.744-12.288s-12.8-20.992-11.776-32.768c0-2.048 0.512-1.024 1.024-6.144H605.696L552.96 660.48H742.4c13.824 0 25.6 6.144 33.28 15.872s9.728 23.04 6.656 36.352z"
          p-id="7342"
          data-spm-anchor-id="a313x.7781069.0.i13"
          class=""
          fill="#f4ea2a"
        ></path>
        <path
          d="M479.744 878.08c-1.536 0-3.584 0-5.12-0.512-10.752-3.072-17.408-14.336-14.336-25.088l109.568-408.064c3.072-10.752 14.336-17.408 25.088-14.336 10.752 3.072 17.408 14.336 14.336 25.088L499.712 863.232c-2.56 8.704-10.752 14.848-19.968 14.848z"
          p-id="7343"
          data-spm-anchor-id="a313x.7781069.0.i10"
          class=""
          fill="#e8989a"
        ></path>
      </svg>
      <span>管理活动</span>
      <span>签到参加</span>
    </main>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scope>
.welcome-content-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;

  .square {
    position: absolute;
    z-index: 1;
    animation: rotate-animation 2s infinite;
  }
  .square:nth-child(1) {
    width: 40px;
    height: 40px;
    background: skyblue;
    transform: rotateZ(20deg);
    top: 30%;
    right: 40%;
  }

  .square:nth-child(2) {
    width: 20px;
    height: 20px;
    background: #f1c40f;
    transform: rotateZ(50deg);
    top: 30%;
    right: 36%;
  }

  main {
    width: 40%;
    height: 60%;
    margin: auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;

    svg {
      width: 100%;
      margin: auto;
      position: absolute;
      animation: bigger 3s infinite;
      z-index: 1;
    }

    span {
      display: block;
      font-size: 40px;
      font-weight: bolder;
      margin: auto;
      text-align: center;
      animation: float 3s infinite;
      position: relative;
      top: 0;
    }

    span:nth-child(1) {
      font-size: 50px;
      color: plum;
      transform: translateX(-50%) translateY(50px);
    }
    span:nth-child(3) {
      color: #3498db;
      transform: translateX(40%) translateY(50px);
      animation-delay: 0.5s;
    }
    span:nth-child(4) {
      color: #e67e22;
      transform: translateX(-40%) translateY(100px);
      animation-delay: 1s;
    }
  }
}

@keyframes float {
  50% {
    top: 20px;
  }
}

@keyframes rotate-animation {
  50% {
    transform: rotate(40deg);
  }
}

@keyframes bigger {
  50% {
    transform: scale(1.05);
  }
}
</style>